﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using AnesSystem.Models;
using AnesSystem.ViewModels;

namespace AnesSystem.Controls
{
    /// <summary>
    /// realTimeSignsConfigMainCtrl.xaml 的交互逻辑
    /// </summary>
    public partial class RealTimeSignsConfigMainCtrl : UserControl
    {

        #region Variables
        #endregion


        #region Constructor
        public RealTimeSignsConfigMainCtrl()
        {
            InitializeComponent();
            this.DataContext = RealTimeSignsConfigCtrlViewModel.Instance;
            

        }






        #endregion

        #region Properties


        #endregion

        #region 依赖属性


        #endregion

        #region Event


        #endregion

        #region PrivateMethods


        #endregion

        #region Public/ProtectedMethods


        #endregion

        #region EventHandlers

        private void _leftToRight_Click(object sender, RoutedEventArgs e)
        {
            if (AutoShowSignsCtrlViewModel.Instance.AutoShowSignsList.Count > 20)
            {
                MessageBoxCommon.ShowDialog("添加参数过多!", MessageBoxCommon.OK);
                return;
            }
            RealTimeSignsConfigCtrlViewModel.Instance.ChangSignLeftToRight(NoShowSignCtrlViewModel.Instance.SelectSigns);
        }

        private void _rightToLeft_Click(object sender, RoutedEventArgs e)
        {
            RealTimeSignsConfigCtrlViewModel.Instance.ChangSignRightToLeft(AutoShowSignsCtrlViewModel.Instance.SelectAutoShowSign);
        }
        #endregion

    }
}
